<?php


namespace App\Controller;

use App\Job\FooJob;
use Hyperf\HttpServer\Annotation\AutoController;

/**
 * Class JobController
 * @package App\Controller
 * @AutoController(prefix="job")
 */
class JobController extends AbstractController
{
    public function test1()
    {
        queue_push((new FooJob(uniqid())),5);
        // 调用投递队列
        return [
            'mag'=>'success'
        ];
    }
}